package com.itheima.arrays;

import java.util.Arrays;

public class Demo01 {
    public static void main(String[] args) {
        int[] arr = {4,1,8,3,2,6,10,9};
        String s = Arrays.toString(arr);
        System.out.println(s);
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
        int i = Arrays.binarySearch(arr,6);
        System.out.println(i);



    }
}
